package com.chencs.biz.product.mapper;

import com.chencs.vo.biz.product.FavoritesModel;
import com.chencs.vo.biz.product.KeyModel;
import com.chencs.vo.biz.product.ProductModel;

import java.util.List;

/**
 * Created by fangzehua on 2017/6/30.
 */
public interface FavoritesMapper {

      void insertFavorites(FavoritesModel model);

      FavoritesModel findFavoritesModelById(String code);

      void updateFavoritesByModel(FavoritesModel model);

      void delAllFavorites();

      void updateFavorites(String code);

      List<FavoritesModel> getFavoriteList();

      void insertProduct(ProductModel model);

      ProductModel findProductByPid(String pid);

      void delProductByFavoritesId(String fid);

      List<ProductModel> getProduct();

      void delhotKey();

      void  insertHotKey(KeyModel keyModel);

      void clear_pro();
}
